.container {
  min-height: 100vh;
  max-height: 100vh;
  background-color: #f5f5f5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.navBar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.content {
  padding: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* Webkit浏览器滚动条样式 */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.content::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

.content::-webkit-scrollbar-thumb:active {
  background-color: #666;
}

.loadingContainer,
.errorContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

.loading,
.errorText {
  font-size: 16px;
  color: #666;
}

/* 用户头部信息 */
.userHeader {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  color: white;
  position: relative;
}

.avatarSection {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}

.avatar {
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.verifiedBadge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.userBasicInfo {
  text-align: center;
  margin-bottom: 20px;
}

.userName {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.verifiedIcon {
  color: #4CAF50;
  font-size: 18px;
}

.userSchool {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.userMajor {
  font-size: 14px;
  opacity: 0.8;
}

.actionButtons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.followButton,
.messageButton {
  min-width: 80px;
  border-radius: 20px;
  font-weight: 500;
}

/* 统计信息 */
.statsSection {
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  margin-bottom: 10px;
}

.statItem {
  text-align: center;
}

.statNumber {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.statLabel {
  font-size: 14px;
  color: #666;
}

/* 用户简介 */
.bioSection {
  background-color: white;
  padding: 20px;
  margin-bottom: 10px;
}

.bioText {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 15px;
}

.tagsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  background-color: #f0f0f0;
  color: #666;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.joinDate {
  font-size: 13px;
  color: #999;
}

/* 动态部分 */
.postsSection {
  background-color: white;
  min-height: 300px;
  flex: 1;
}

.postsContainer {
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  /* 动态列表滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.postsContainer::-webkit-scrollbar {
  width: 4px;
}

.postsContainer::-webkit-scrollbar-track {
  background: transparent;
}

.postsContainer::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.postsContainer::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}

.postItem {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.postItem:hover {
  background-color: #f8f8f8;
}

.postItem:last-child {
  border-bottom: none;
}

.postContent {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 10px;
}

.postImages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.postImageContainer {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.postImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.postTime {
  font-size: 13px;
  color: #999;
}

.postActions {
  display: flex;
  gap: 15px;
}

.actionButton {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.actionButton:hover {
  background-color: #f5f5f5;
}

.actionButton:active {
  transform: scale(0.95);
}

.actionIcon {
  font-size: 14px;
}

/* 空状态 */
.emptyPosts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.emptyText {
  font-size: 16px;
}

/* 私信弹窗 */
.messageModal {
  padding: 10px 0;
}

.messageTarget {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.messageInput {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.messageInput:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .userHeader {
    padding: 15px;
  }
  
  .userName {
    font-size: 20px;
  }
  
  .statsSection {
    padding: 15px;
  }
  
  .statNumber {
    font-size: 18px;
  }
  
  .bioSection {
    padding: 15px;
  }
  
  .postItem {
    padding: 12px 15px;
  }

  .postsContainer {
    max-height: 300px;
  }
}

/* 动画效果 */
.actionButton {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.followButton,
.messageButton {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.followButton:active,
.messageButton:active {
  transform: scale(0.95);
}

.postItem {
  transition: background-color 0.2s ease;
}

.postItem:hover {
  background-color: #fafafa;
}

/* 滚动条平滑滚动 */
.content,
.postsContainer {
  scroll-behavior: smooth;
}

/* 滚动条在移动设备上的优化 */
@media (max-width: 768px) {
  .content::-webkit-scrollbar {
    width: 3px;
  }
  
  .postsContainer::-webkit-scrollbar {
    width: 3px;
  }
}